<?php
class ORMpz_knowledge {
  public function toObj($args) {
    $obj = new stdClass();
    if (isset($args->track_id)) {
      $obj->track_id =  $args->track_id;
    }
    if (isset($args->title)) {
      $obj->title =  $args->title;
    }
    if (isset($args->link)) {
      $obj->link =  $args->link;
    }
    if (isset($args->intro)) {
      $obj->intro =  $args->intro;
    }
    if (isset($args->type)) {
      $obj->type =  $args->type;
    }
    if (isset($args->detail)) {
      $obj->detail =  $args->detail;
    }
    return $obj;
  }
}
?>
